package com.zte.leave.model;


//import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Leave {

  private String leaveid;
  private String leaveperson;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date leavetime;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date starttime;
  private String leavereson;


  public String getLeaveid() {
    return leaveid;
  }

  public void setLeaveid(String leaveid) {
    this.leaveid = leaveid;
  }


  public String getLeaveperson() {
    return leaveperson;
  }

  public void setLeaveperson(String leaveperson) {
    this.leaveperson = leaveperson;
  }


  public Date getLeavetime() {
    return leavetime;
  }

  public void setLeavetime(Date leavetime) {
    this.leavetime = leavetime;
  }


  public Date getStarttime() {
    return starttime;
  }

  public void setStarttime(Date starttime) {
    this.starttime = starttime;
  }


  public String getLeavereson() {
    return leavereson;
  }

  public void setLeavereson(String leavereson) {
    this.leavereson = leavereson;
  }

  public Leave() {
  }

  public Leave(String leaveid, String leaveperson, Date leavetime, Date starttime, String leavereson) {
    this.leaveid = leaveid;
    this.leaveperson = leaveperson;
    this.leavetime = leavetime;
    this.starttime = starttime;
    this.leavereson = leavereson;
  }

  @Override
  public String toString() {
    return "Leave{" +
            "leaveid='" + leaveid + '\'' +
            ", leaveperson='" + leaveperson + '\'' +
            ", leavetime=" + leavetime +
            ", starttime=" + starttime +
            ", leavereson='" + leavereson + '\'' +
            '}';
  }
}
